From d526bcc71b8ca42764e90618fa306c75434db68d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 4 Nov 2020 23:35:01 -0500 Subject: [PATCH] Cosmetics Fix argument ordering of gdk_cursor_new_from_name. --- gdk/gdkcursor.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gdk/gdkcursor.c b/gdk/gdkcursor.c index 8fd33d1d7b..a0d5bc276d 100644 --- a/gdk/gdkcursor.c +++ b/gdk/gdkcursor.c @@ -272,9 +272,9 @@ gdk_cursor_equal (gconstpointer a, /** * gdk_cursor_new_from_name: + * @name: the name of the cursor * @fallback: (allow-none): %NULL or the #GdkCursor to fall back to when * this one cannot be supported - * @name: the name of the cursor * * Creates a new cursor by looking up @name in the current cursor * theme. @@ -321,9 +321,9 @@ gdk_cursor_equal (gconstpointer a, * Returns: (nullable): a new #GdkCursor, or %NULL if there is no * cursor with the given name */ -GdkCursor* +GdkCursor * gdk_cursor_new_from_name (const char *name, - GdkCursor *fallback) + GdkCursor *fallback) { g_return_val_if_fail (name != NULL, NULL); g_return_val_if_fail (fallback == NULL || GDK_IS_CURSOR (fallback), NULL); @@ -357,7 +357,7 @@ gdk_cursor_new_from_texture (GdkTexture *texture, g_return_val_if_fail (0 <= hotspot_y && hotspot_y < gdk_texture_get_height (texture), NULL); g_return_val_if_fail (fallback == NULL || GDK_IS_CURSOR (fallback), NULL); - return g_object_new (GDK_TYPE_CURSOR, + return g_object_new (GDK_TYPE_CURSOR, "texture", texture, "hotspot-x", hotspot_x, "hotspot-y", hotspot_y, -- 2.30.2